<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>会员维护</title>
    <script type="text/javascript" src="<c:url value='/static/js/admin/vip/list.js' />"></script>
</head>

<body>
<c:if test="${!empty param.msg}">
	<div class="alert alert-green fadein-top"><span class="close rotate-hover"></span><strong>提示：</strong>${param.msg}</div>
</c:if>
<form id="form" method="post" action="<c:url value='/admin/vip/list' />" name="form">
<div class="panel admin-panel">
	<div class="panel-head"><strong>商品列表</strong></div>
    <div class="padding border-bottom">
      	<div class="line">
	    	<div class="x6">
	   			<div class="input-group padding-little-top"> 
	   				<input type="text" class="input input-small border-main" name="key" value="${key}" placeholder="请输入姓名、会员卡号、手机号、身份证号查询" /> 
	   				<span class="addbtn"><button type="submit" class="button input-small bg-main">筛选</button></span> 
	   			</div>
	    	</div>
    	</div>
    </div>
    <table class="table table-hover">
       	<tr>
        	<th width="100" style="text-align: center;">微信昵称</th>
        	<th width="100" style="text-align: center;">姓名</th>
        	<th width="100" style="text-align: center;">会员卡号</th>
        	<th width="100" style="text-align: center;">手机</th>
        	<th width="100" style="text-align: center;">身份证号</th>
        	<th width="50" style="text-align: center;">积分</th>
        	<th width="100" style="text-align: center;">预存款</th>
       	</tr>
       	<c:forEach items="${pager.datas}" var="vip">
       		<tr>
       			<td style="text-align: center;">${vip.wxNikename}</td>
       			<td style="text-align: center;">${vip.name}</td>
       			<td style="text-align: center;">${vip.VIPCardNo}</td>
       			<td style="text-align: center;">${vip.mobile}</td>
       			<td style="text-align: center;">${vip.IDCardNo}</td>
       			<td style="text-align: center;">${vip.fraction}</td>
       			<td style="text-align: center;">￥${vip.preDeposit}</td>
       		</tr>
       	</c:forEach>
    </table>
	  <jsp:include page="../../commons/pager.jsp">
	    	<jsp:param value="list" name="url"/>
	  </jsp:include>
</div>
</form>

</body>
</html>